<%@ include file="../common/top.jsp"%>
<div class="crumb">
    <div class="w">
        <div class="crumb-content">
            <a href="#" class="link">MyStore</a>
                  <span>></span>
                  <span class="link-text">category:${sessionScope.category.name}</span>
        </div>
    </div>
</div>

<div class="w panel">
    <div id="BackLink">
        <a href="main">Return to Main Menu</a>
    </div>

    <div id="Catalog">

        <h2>${sessionScope.category.name}</h2>

        <table class="order-table">
            <tr>
                <th>Product ID</th>
                <th>Name</th>
            </tr>
            <c:forEach var="product" items="${sessionScope.productList}">
                <tr>
                    <td>
                        <a href="productForm?productId=${product.productId}">${product.productId}</a>
                    </td>
                    <td>${product.name}</td>
                </tr>
            </c:forEach>
        </table>

    </div>
</div>
<%@ include file="../common/bottom.jsp"%>


